import request from "@/utils/request";

// 查询材料清单列表
export function listMaterialManifest(query) {
  return request({
    url: "/ma/materialManifest/list",
    method: "get",
    params: query
  });
}

export function allListMaterialManifest(query) {
  return request({
    url: "/ma/materialManifest/allList",
    method: "get",
    params: query
  });
}
// 查询材料清单详细
export function getMaterialManifest(manifestId) {
  return request({
    url: "/ma/materialManifest/" + manifestId,
    method: "get"
  });
}

// 新增材料清单
export function addMaterialManifest(data) {
  return request({
    url: "/ma/materialManifest",
    method: "post",
    data: data
  });
}
// 批量新增材料清单
export function addListMaterialManifest(data) {
  return request({
    url: "/ma/materialManifest/addList",
    method: "post",
    data: data
  });
}

// 修改材料清单
export function updateMaterialManifest(data) {
  return request({
    url: "/ma/materialManifest",
    method: "put",
    data: data
  });
}
// 修改材料清单
export function updateListMaterialManifest(data) {
  return request({
    url: "/ma/materialManifest/editList",
    method: "put",
    data: data
  });
}

// 删除材料清单
export function delMaterialManifest(manifestId) {
  return request({
    url: "/ma/materialManifest/" + manifestId,
    method: "delete"
  });
}
